export let LAYER = {
  name: '图层',
  list: [
    {
      name: '打开图层',
      event: 'openLayer',
      explain:
        '打开选择的图层，并将图层的值清空。若由表格事件触发则会将表格组件的选中数据赋值给图层（若表格选中数据为多条，则取第一条选中数据）。无传递数据',
      extension: {
        layer: {
          type: 'exTreeSelect',
          name: '图层选择',
          value: [],
          hasCheckbox: false,
          treeData: '$getLayers',
        },
        splitPane: {
          type: 'exSplitPane',
          name: '',
          value: { splitId: '', paneId: '' },
        },
      },
    },
    {
      name: '关闭图层',
      event: 'closeLayer',
      explain: '关闭选择的图层，并清空图层的数据。无传递数据',
      extension: {
        layer: {
          type: 'exTreeSelect',
          name: '图层选择',
          value: [],
          hasCheckbox: false,
          treeData: '$getLayers',
        },
      },
    },
    {
      name: '获取图层数据',
      event: 'getLayerData',
      explain: '获取图层的数据。传递数据为图层数据',
      extension: {
        layer: {
          type: 'exTreeSelect',
          name: '图层选择',
          value: [],
          hasCheckbox: false,
          treeData: '$getLayers',
        },
        getDataKey: {
          type: 'exInput',
          name: '获取数据Key',
          value: '',
        },
      },
    },
  ],
}
